package com.jemaa.news.app;

import java.util.ArrayList;
import java.util.List;

public enum Category {
	
	ALL(0, "ALL"), 
	POLITIQUE(1, "POLITIQUE"), 
	ECONOMIE(2, "ECONOMIE"),
	CULTURE(3, "CULTURE"),
	TRIBUNES(4, "TRIBUNES"),
	CHRONIQUES(5, "CHRONIQUES");
	
	private int idCateg;
	private String name;
	
	private Category(int idCateg, String name) {
		this.idCateg = idCateg;
		this.name = name;
	}

	public int getIdCateg() {
		return idCateg;
	}

	public String getName() {
		return name;
	}


	public static List<String> names(){
		List<String> names = new ArrayList<String>();
		for(Category categ : Category.values()){
			names.add(categ.name());
		}
		return names;
	}
	
}
